<template>
  <div class="page_root" :key="queryUpdateFlag" data-page-name="FAQ审批详情页" data-page-identification="t_0qmx2r0fpk">
    <a-spin :spinning="pageLoading.loading" :tip="pageLoading.tip">
      <!-- begin vid_a66h2jgxek 容器_ak0v3kpvfq -->
      <al-box class="vid_a66h2jgxek">
        <!-- begin vid_xlkfzz25ds 容器_mo015ecmmy -->
        <al-box class="vid_xlkfzz25ds">
          <!-- begin vid_qda7xszz78 容器_pa5tx52lro -->
          <al-box class="vid_qda7xszz78">
            <!-- begin vid_sfilmvv65x FAQ详情 -->
            <span class="vid_sfilmvv65x"> FAQ详情 </span>
            <!-- end vid_sfilmvv65x FAQ详情 -->
          </al-box>
          <!-- end vid_qda7xszz78 容器_pa5tx52lro -->
          <!-- begin vid_l7xgnljczt 容器_puxtyq9i83 -->
          <al-box class="vid_l7xgnljczt">
            <!-- begin vid_hte17hl8ou 审批类型： -->
            <span class="vid_hte17hl8ou"> 审批类型： </span>
            <!-- end vid_hte17hl8ou 审批类型： -->
            <!-- begin vid_8ce19j1ydg 文本 -->
            <span class="vid_8ce19j1ydg"> 文本 </span>
            <!-- end vid_8ce19j1ydg 文本 -->
          </al-box>
          <!-- end vid_l7xgnljczt 容器_puxtyq9i83 -->
          <!-- begin vid_iba16wjwvd 布局容器_a3nnpfdsn8 -->
          <a-row class="vid_iba16wjwvd" :slots="'6:6:6:6'">
            <a-col :span="6">
              <!-- begin vid_iwcyr4i375 模板名称： -->
              <span class="vid_iwcyr4i375"> 模板名称： </span>
              <!-- end vid_iwcyr4i375 模板名称： -->
              <!-- begin vid_zqjezxqu9b 简单文本_n8z2syxfny -->
              <span class="vid_zqjezxqu9b"> 文本 </span>
              <!-- end vid_zqjezxqu9b 简单文本_n8z2syxfny -->
            </a-col>
            <a-col :span="6">
              <!-- begin vid_5sd6n2l02g 标签： -->
              <span class="vid_5sd6n2l02g"> 标签： </span>
              <!-- end vid_5sd6n2l02g 标签： -->
              <!-- begin vid_cop9kfadhp 简单文本_uqrw31a556 -->
              <span class="vid_cop9kfadhp"> 文本 </span>
              <!-- end vid_cop9kfadhp 简单文本_uqrw31a556 -->
            </a-col>
            <a-col :span="6">
              <!-- begin vid_8kezk0tugs 分类： -->
              <span class="vid_8kezk0tugs"> 分类： </span>
              <!-- end vid_8kezk0tugs 分类： -->
              <!-- begin vid_q5no09eq2f 简单文本_t5ue181svf -->
              <span class="vid_q5no09eq2f"> 文本 </span>
              <!-- end vid_q5no09eq2f 简单文本_t5ue181svf -->
            </a-col>
            <a-col :span="6">
              <!-- begin vid_pg8giogatn 难度评级： -->
              <span class="vid_pg8giogatn"> 难度评级： </span>
              <!-- end vid_pg8giogatn 难度评级： -->
              <!-- begin vid_pzyvv5q9yg 简单文本_14mzkfjjof -->
              <span class="vid_pzyvv5q9yg"> 文本 </span>
              <!-- end vid_pzyvv5q9yg 简单文本_14mzkfjjof -->
            </a-col>
          </a-row>
          <!-- end vid_iba16wjwvd 布局容器_a3nnpfdsn8 -->
        </al-box>
        <!-- end vid_xlkfzz25ds 容器_mo015ecmmy -->
        <!-- begin vid_yod8xlcrbi 容器_2vfdyvrlmk -->
        <al-box class="vid_yod8xlcrbi">
          <!-- begin vid_b1hawj8uwy 容器_9fyju2j8l2 -->
          <al-box class="vid_b1hawj8uwy">
            <!-- begin vid_h6u3d6kz74 关联任务 -->
            <span class="vid_h6u3d6kz74"> 关联任务 </span>
            <!-- end vid_h6u3d6kz74 关联任务 -->
          </al-box>
          <!-- end vid_b1hawj8uwy 容器_9fyju2j8l2 -->
          <!-- begin vid_du2gmqur8d For循环_lcyt8nqhw7 -->
          <al-cycle
            v-if="vid_du2gmqur8d_props.dataSource?.length"
            class="vid_du2gmqur8d"
            v-model:dataSource="vid_du2gmqur8d_props.dataSource"
            v-model:current="vid_du2gmqur8d_props.current"
            v-model:currentIndex="vid_du2gmqur8d_props.currentIndex"
          >
            <template #default="vid_du2gmqur8d_dataItem">
              <!-- begin vid_fol8r4o0tj 布局容器_rq2fogxpj9 -->
              <a-row :data-cycle-index="vid_du2gmqur8d_dataItem.cycleIndex" class="vid_fol8r4o0tj" :slots="'6:6:6:6'">
                <a-col :span="6">
                  <!-- begin vid_njmnjiq7i7 关联项目阶段： -->
                  <span :data-cycle-index="vid_du2gmqur8d_dataItem.cycleIndex" class="vid_njmnjiq7i7"> 关联项目阶段： </span>
                  <!-- end vid_njmnjiq7i7 关联项目阶段： -->
                  <!-- begin vid_a7lvpg612b 简单文本_xotzm0yq4j -->
                  <span :data-cycle-index="vid_du2gmqur8d_dataItem.cycleIndex" class="vid_a7lvpg612b"> 文本 </span>
                  <!-- end vid_a7lvpg612b 简单文本_xotzm0yq4j -->
                </a-col>
                <a-col :span="6">
                  <!-- begin vid_m4d07xxbra 关联任务： -->
                  <span :data-cycle-index="vid_du2gmqur8d_dataItem.cycleIndex" class="vid_m4d07xxbra"> 关联任务： </span>
                  <!-- end vid_m4d07xxbra 关联任务： -->
                  <!-- begin vid_hjbw8phj2h 简单文本_mecxq9l2pn -->
                  <span :data-cycle-index="vid_du2gmqur8d_dataItem.cycleIndex" class="vid_hjbw8phj2h"> 文本 </span>
                  <!-- end vid_hjbw8phj2h 简单文本_mecxq9l2pn -->
                </a-col>
                <a-col :span="6"> </a-col>
                <a-col :span="6"> </a-col>
              </a-row>
              <!-- end vid_fol8r4o0tj 布局容器_rq2fogxpj9 -->
            </template>
          </al-cycle>
          <!-- end vid_du2gmqur8d For循环_lcyt8nqhw7 -->
        </al-box>
        <!-- end vid_yod8xlcrbi 容器_2vfdyvrlmk -->
        <!-- begin vid_4vvtsmhowe 容器_4vkv5xe3uy -->
        <al-box class="vid_4vvtsmhowe">
          <!-- begin vid_di36pt2pzs 容器_q5sjni14bk -->
          <al-box class="vid_di36pt2pzs">
            <!-- begin vid_yjya76ehrb 其他 -->
            <span class="vid_yjya76ehrb"> 其他 </span>
            <!-- end vid_yjya76ehrb 其他 -->
          </al-box>
          <!-- end vid_di36pt2pzs 容器_q5sjni14bk -->
          <!-- begin vid_rypwgc6ss5 布局容器_tbv57tl4ej -->
          <a-row class="vid_rypwgc6ss5" :slots="'24:3:21:3:21:3:21:24:3:21:3:21:3:21:24:3:21:3:21:3:21'">
            <a-col :span="24">
              <!-- begin vid_rtbnfwrnks 容器_ccswfj6tgi -->
              <al-box class="vid_rtbnfwrnks">
                <!-- begin vid_4bqlt6j1py 问题现象 -->
                <span class="vid_4bqlt6j1py"> 问题现象 </span>
                <!-- end vid_4bqlt6j1py 问题现象 -->
              </al-box>
              <!-- end vid_rtbnfwrnks 容器_ccswfj6tgi -->
            </a-col>
            <a-col :span="3">
              <!-- begin vid_qbgkhd7h2v 容器_vwhd3k18mw -->
              <al-box class="vid_qbgkhd7h2v">
                <!-- begin vid_s745n3oub4 现象发现方 -->
                <span class="vid_s745n3oub4"> 现象发现方 </span>
                <!-- end vid_s745n3oub4 现象发现方 -->
              </al-box>
              <!-- end vid_qbgkhd7h2v 容器_vwhd3k18mw -->
            </a-col>
            <a-col :span="21">
              <!-- begin vid_xzvvmby2lh 容器_avnrcyg7yp -->
              <al-box class="vid_xzvvmby2lh">
                <!-- begin vid_rzotejsivt 简单文本_6k9ys1hkxu -->
                <span class="vid_rzotejsivt">
                  {{ renderStringInTemplate(vid_rzotejsivt_props.rt_text) }}
                </span>
                <!-- end vid_rzotejsivt 简单文本_6k9ys1hkxu -->
              </al-box>
              <!-- end vid_xzvvmby2lh 容器_avnrcyg7yp -->
            </a-col>
            <a-col :span="3">
              <!-- begin vid_skds8sq3vh 容器_l1bpckcxk7 -->
              <al-box class="vid_skds8sq3vh">
                <!-- begin vid_u03k2svv4z 具体现象 -->
                <span class="vid_u03k2svv4z"> 具体现象 </span>
                <!-- end vid_u03k2svv4z 具体现象 -->
              </al-box>
              <!-- end vid_skds8sq3vh 容器_l1bpckcxk7 -->
            </a-col>
            <a-col :span="21">
              <!-- begin vid_adexb2xu2x 容器_7s0d3tbhng -->
              <al-box class="vid_adexb2xu2x">
                <!-- begin vid_487ozoowk2 简单文本_1tcrroehvp -->
                <span class="vid_487ozoowk2">
                  {{ renderStringInTemplate(vid_487ozoowk2_props.rt_text) }}
                </span>
                <!-- end vid_487ozoowk2 简单文本_1tcrroehvp -->
              </al-box>
              <!-- end vid_adexb2xu2x 容器_7s0d3tbhng -->
            </a-col>
            <a-col :span="3">
              <!-- begin vid_p67rt8myqe 容器_peeo4e2f0f -->
              <al-box class="vid_p67rt8myqe">
                <!-- begin vid_oyuk3wj70z 导致结果 -->
                <span class="vid_oyuk3wj70z"> 导致结果 </span>
                <!-- end vid_oyuk3wj70z 导致结果 -->
              </al-box>
              <!-- end vid_p67rt8myqe 容器_peeo4e2f0f -->
            </a-col>
            <a-col :span="21">
              <!-- begin vid_z473t7kfws 容器_cjo4e5795t -->
              <al-box class="vid_z473t7kfws">
                <!-- begin vid_gayenpndmn 简单文本_zp6xc6p7d8 -->
                <span class="vid_gayenpndmn">
                  {{ renderStringInTemplate(vid_gayenpndmn_props.rt_text) }}
                </span>
                <!-- end vid_gayenpndmn 简单文本_zp6xc6p7d8 -->
              </al-box>
              <!-- end vid_z473t7kfws 容器_cjo4e5795t -->
            </a-col>
            <a-col :span="24">
              <!-- begin vid_1fmhcrbafu 容器_1jmnoemqr5 -->
              <al-box class="vid_1fmhcrbafu">
                <!-- begin vid_8mgno2r2dp 可能原因 -->
                <span class="vid_8mgno2r2dp"> 可能原因 </span>
                <!-- end vid_8mgno2r2dp 可能原因 -->
              </al-box>
              <!-- end vid_1fmhcrbafu 容器_1jmnoemqr5 -->
            </a-col>
            <a-col :span="3">
              <!-- begin vid_lyuiecoqvt 容器_60sum0xl57 -->
              <al-box class="vid_lyuiecoqvt">
                <!-- begin vid_6zq6ukf1x4 简单文本_b52r8h061p -->
                <span class="vid_6zq6ukf1x4"> 现象发现方 </span>
                <!-- end vid_6zq6ukf1x4 简单文本_b52r8h061p -->
              </al-box>
              <!-- end vid_lyuiecoqvt 容器_60sum0xl57 -->
            </a-col>
            <a-col :span="21">
              <!-- begin vid_h0n5ab0biu 容器_ro1su69jsu -->
              <al-box class="vid_h0n5ab0biu">
                <!-- begin vid_t3ic87abfk 简单文本_7m4y40j547 -->
                <span class="vid_t3ic87abfk">
                  {{ renderStringInTemplate(vid_t3ic87abfk_props.rt_text) }}
                </span>
                <!-- end vid_t3ic87abfk 简单文本_7m4y40j547 -->
              </al-box>
              <!-- end vid_h0n5ab0biu 容器_ro1su69jsu -->
            </a-col>
            <a-col :span="3">
              <!-- begin vid_wmlcmyjt5w 容器_vdy1ct4fd5 -->
              <al-box class="vid_wmlcmyjt5w">
                <!-- begin vid_5x63fm5w3t 简单文本_o7a6695sm6 -->
                <span class="vid_5x63fm5w3t"> 具体现象 </span>
                <!-- end vid_5x63fm5w3t 简单文本_o7a6695sm6 -->
              </al-box>
              <!-- end vid_wmlcmyjt5w 容器_vdy1ct4fd5 -->
            </a-col>
            <a-col :span="21">
              <!-- begin vid_bbybol1zsa 容器_ucq0vrafyf -->
              <al-box class="vid_bbybol1zsa">
                <!-- begin vid_54rcrhgdmj 简单文本_no3c2p66z4 -->
                <span class="vid_54rcrhgdmj">
                  {{ renderStringInTemplate(vid_54rcrhgdmj_props.rt_text) }}
                </span>
                <!-- end vid_54rcrhgdmj 简单文本_no3c2p66z4 -->
              </al-box>
              <!-- end vid_bbybol1zsa 容器_ucq0vrafyf -->
            </a-col>
            <a-col :span="3">
              <!-- begin vid_umn6hud4h7 容器_7i4caqp5az -->
              <al-box class="vid_umn6hud4h7">
                <!-- begin vid_5ti11oogh7 简单文本_i5c6553rn4 -->
                <span class="vid_5ti11oogh7"> 导致结果 </span>
                <!-- end vid_5ti11oogh7 简单文本_i5c6553rn4 -->
              </al-box>
              <!-- end vid_umn6hud4h7 容器_7i4caqp5az -->
            </a-col>
            <a-col :span="21">
              <!-- begin vid_xpewrscbc0 容器_sjnzi0o5kz -->
              <al-box class="vid_xpewrscbc0">
                <!-- begin vid_jgey352cdb 简单文本_4i4tzej12t -->
                <span class="vid_jgey352cdb">
                  {{ renderStringInTemplate(vid_jgey352cdb_props.rt_text) }}
                </span>
                <!-- end vid_jgey352cdb 简单文本_4i4tzej12t -->
              </al-box>
              <!-- end vid_xpewrscbc0 容器_sjnzi0o5kz -->
            </a-col>
            <a-col :span="24">
              <!-- begin vid_qiyecho2vx 容器_ijcwh2oqnx -->
              <al-box class="vid_qiyecho2vx">
                <!-- begin vid_2bqh7fncrg 解决SOP和标准动作 -->
                <span class="vid_2bqh7fncrg"> 解决SOP和标准动作 </span>
                <!-- end vid_2bqh7fncrg 解决SOP和标准动作 -->
              </al-box>
              <!-- end vid_qiyecho2vx 容器_ijcwh2oqnx -->
            </a-col>
            <a-col :span="3">
              <!-- begin vid_9syj1hwxbp 容器_8oosdfakef -->
              <al-box class="vid_9syj1hwxbp">
                <!-- begin vid_iksz9tk2cz 执行目标 -->
                <span class="vid_iksz9tk2cz"> 执行目标 </span>
                <!-- end vid_iksz9tk2cz 执行目标 -->
              </al-box>
              <!-- end vid_9syj1hwxbp 容器_8oosdfakef -->
            </a-col>
            <a-col :span="21">
              <!-- begin vid_3jg84rnica 容器_ak4n57osih -->
              <al-box class="vid_3jg84rnica">
                <!-- begin vid_xfcxztygwb 简单文本_vbuew0p90z -->
                <span class="vid_xfcxztygwb">
                  {{ renderStringInTemplate(vid_xfcxztygwb_props.rt_text) }}
                </span>
                <!-- end vid_xfcxztygwb 简单文本_vbuew0p90z -->
              </al-box>
              <!-- end vid_3jg84rnica 容器_ak4n57osih -->
            </a-col>
            <a-col :span="3">
              <!-- begin vid_inmc4b6ld2 容器_iwmqxnti2s -->
              <al-box class="vid_inmc4b6ld2">
                <!-- begin vid_51ybjihkae 执行方案 -->
                <span class="vid_51ybjihkae"> 执行方案 </span>
                <!-- end vid_51ybjihkae 执行方案 -->
              </al-box>
              <!-- end vid_inmc4b6ld2 容器_iwmqxnti2s -->
            </a-col>
            <a-col :span="21">
              <!-- begin vid_xyo1cajxp3 容器_0rrl9nuwwu -->
              <al-box class="vid_xyo1cajxp3">
                <!-- begin vid_2wh4y6vdie 简单文本_1ru69f2fek -->
                <span class="vid_2wh4y6vdie">
                  {{ renderStringInTemplate(vid_2wh4y6vdie_props.rt_text) }}
                </span>
                <!-- end vid_2wh4y6vdie 简单文本_1ru69f2fek -->
              </al-box>
              <!-- end vid_xyo1cajxp3 容器_0rrl9nuwwu -->
            </a-col>
            <a-col :span="3">
              <!-- begin vid_6rb5u4c9ke 容器_crgod71q5q -->
              <al-box class="vid_6rb5u4c9ke">
                <!-- begin vid_84a44sp7q9 达成标准 -->
                <span class="vid_84a44sp7q9"> 达成标准 </span>
                <!-- end vid_84a44sp7q9 达成标准 -->
              </al-box>
              <!-- end vid_6rb5u4c9ke 容器_crgod71q5q -->
            </a-col>
            <a-col :span="21">
              <!-- begin vid_deligkiglq 容器_33o4nivfev -->
              <al-box class="vid_deligkiglq">
                <!-- begin vid_mxykavwcsd 简单文本_o68tt8xdfu -->
                <span class="vid_mxykavwcsd">
                  {{ renderStringInTemplate(vid_mxykavwcsd_props.rt_text) }}
                </span>
                <!-- end vid_mxykavwcsd 简单文本_o68tt8xdfu -->
              </al-box>
              <!-- end vid_deligkiglq 容器_33o4nivfev -->
            </a-col>
          </a-row>
          <!-- end vid_rypwgc6ss5 布局容器_tbv57tl4ej -->
        </al-box>
        <!-- end vid_4vvtsmhowe 容器_4vkv5xe3uy -->
        <!-- begin vid_n6axfrrt1e 容器_n006jp5aio -->
        <al-box class="vid_n6axfrrt1e">
          <!-- begin vid_v19ka9eo91 容器_l20cyztbty -->
          <al-box class="vid_v19ka9eo91">
            <!-- begin vid_gcr9bk01j7 简单文本_kj2fylt33x -->
            <span class="vid_gcr9bk01j7"> 变更详情 </span>
            <!-- end vid_gcr9bk01j7 简单文本_kj2fylt33x -->
          </al-box>
          <!-- end vid_v19ka9eo91 容器_l20cyztbty -->
          <!-- begin vid_6s09j1h04g 表格_al1blsa8dl -->
          <!-- 表格_al1blsa8dl -->
          <a-table
            class="vid_6s09j1h04g"
            :editRowSaveLoading="vid_6s09j1h04g_props.editRowSaveLoading"
            :sorter="vid_6s09j1h04g_props.sorter"
            :currentRow="vid_6s09j1h04g_props.currentRow"
            :selectedRowList="vid_6s09j1h04g_props.selectedRowList"
            :data-source="vid_6s09j1h04g_options()"
            @change="handle_vid_6s09j1h04g_change"
            :columns="vid_6s09j1h04g_columns"
            :pagination="vid_6s09j1h04g_pagination"
            row-key="id"
            @resizeColumn="(w, col) => handleResizeColumn(w, col, 'vid_6s09j1h04g')"
            :scroll="{ x: 'max-content', y: 'max-content', scrollToFirstRowOnChange: true, }"
            :row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped-even' : 'table-striped-odd')"
          >
            <template #headerCell="{ title, column }">
              <TableHeaderCell :title="title" :column="column" />
            </template>
            <template #bodyCell="{ text, column, record, index }">
              <!-- 序号列 -->
              <template v-if="column && column.dataIndex === 'vid_6s09j1h04g_serialNumber'">
                {{ index + 1 }}
              </template>
              <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"id"} 列内容 -->
              <template v-if="column.dataIndex === 'id' && !column.customRender">
                <text-table-cell
                  :rowData="record"
                  :conditionValueMap="vid_6s09j1h04g_props.boundaryValueMap"
                  :dataSource="vid_6s09j1h04g_props.contentDataSource[column.dataIndex]"
                  :columnsConfig="column"
                  :value="text"
                />
              </template>
              <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"name"} 列内容 -->
              <template v-if="column.dataIndex === 'name' && !column.customRender">
                <text-table-cell
                  :rowData="record"
                  :conditionValueMap="vid_6s09j1h04g_props.boundaryValueMap"
                  :dataSource="vid_6s09j1h04g_props.contentDataSource[column.dataIndex]"
                  :columnsConfig="column"
                  :value="text"
                />
              </template>
              <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"字段名称"} 列内容 -->
              <template v-if="column.dataIndex === 'changeFieldName' && !column.customRender">
                <text-table-cell
                  :rowData="record"
                  :conditionValueMap="vid_6s09j1h04g_props.boundaryValueMap"
                  :dataSource="vid_6s09j1h04g_props.contentDataSource[column.dataIndex]"
                  :columnsConfig="column"
                  :value="text"
                />
              </template>
              <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"变更前内容"} 列内容 -->
              <template v-if="column.dataIndex === 'beforeChange' && !column.customRender">
                <text-table-cell
                  :rowData="record"
                  :conditionValueMap="vid_6s09j1h04g_props.boundaryValueMap"
                  :dataSource="vid_6s09j1h04g_props.contentDataSource[column.dataIndex]"
                  :columnsConfig="column"
                  :value="text"
                />
              </template>
              <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"变更后内容"} 列内容 -->
              <template v-if="column.dataIndex === 'afterChange' && !column.customRender">
                <text-table-cell
                  :rowData="record"
                  :conditionValueMap="vid_6s09j1h04g_props.boundaryValueMap"
                  :dataSource="vid_6s09j1h04g_props.contentDataSource[column.dataIndex]"
                  :columnsConfig="column"
                  :value="text"
                />
              </template>
              <!-- {"type":"value","dataType":"STRING","rawDataType":"STRING","link":"","value":"变更原因"} 列内容 -->
              <template v-if="column.dataIndex === 'reasonsChange' && !column.customRender">
                <text-table-cell
                  :rowData="record"
                  :conditionValueMap="vid_6s09j1h04g_props.boundaryValueMap"
                  :dataSource="vid_6s09j1h04g_props.contentDataSource[column.dataIndex]"
                  :columnsConfig="column"
                  :value="text"
                />
              </template>
            </template>
          </a-table>
          <!-- end vid_6s09j1h04g 表格_al1blsa8dl -->
        </al-box>
        <!-- end vid_n6axfrrt1e 容器_n006jp5aio -->
      </al-box>
      <!-- end vid_a66h2jgxek 容器_ak0v3kpvfq -->
    </a-spin>
  </div>
</template>
<script setup lang="tsx">
  import {
      h, ref, reactive, toRaw, markRaw, watch, computed,
      onBeforeMount, onMounted, onBeforeUnmount, onUnmounted, onActivated, onDeactivated
    } from "vue";
    import { useRoute, useRouter } from 'vue-router';
    const router = useRouter();
    const route = useRoute();
    import { get, post, put, del, request, requestWithHeaders } from '@/utils/http/Axios';
    import { cloneDeep, localGet, merge, getDifferenceArray, traversalTreeStructure, checkCaseCondition, renderStringInTemplate, handleBreadcrumbJump, throttle, permission, getComponentParamsValue } from '@/utils/index';
    import { isNullOrEmpty, isEmptyArr, isNullOrUnDef, isContained, isArray, isEmpty, isObject } from '@/utils/is';
    import dayjs from 'dayjs';
    import { getPagePcChartsDataSourceConvert } from '@/utils/chart';
    import { message, notification, Modal } from 'ant-design-vue'
    import { propertyFormatByNumber, propertyFormatByPercentage, propertyFormatByDate, parseSubFromDataList } from '@/utils/format';
    import colorTheme from '@/design/custom-theme.json';
    
    import UserTableRecords from '@/model/UserTableRecords';
    import { getAppBaseUrl } from '@/utils/index';
    import { sendToken } from "@/hooks/useIframeToken";
    import { useSystemStore } from "@/store/modules/system";
    const systemStore = useSystemStore();
    

  import TextTableCell from '@/components/page/tableCell/text.vue';
  import TooltipTableCell from '@/components/page/tableCell/tooltip.vue';
  import NumberTableCell from '@/components/page/tableCell/number.vue';
  import ProgressTableCell from '@/components/page/tableCell/progress.vue';
  import OptionsTableCell from '@/components/page/tableCell/options.vue';
  import MultipleOptionsTableCell from '@/components/page/tableCell/multipleOptions.vue';
  import DatePickerTableCell from '@/components/page/tableCell/datePicker.vue';
  import RangePickerTableCell from '@/components/page/tableCell/rangePicker.vue';
  import RangeNumberTableCell from '@/components/page/tableCell/rangeNumber.vue';
  import BoolTableCell from '@/components/page/tableCell/bool.vue';
  import TableHeaderCell from '@/components/page/TableHeaderCell.vue';

      // 获取传入的流程ID和组件参数
      const props = defineProps({
            'processInstanceId': {
            type: [String,Number,Boolean],
            default: undefined,
        },
      })
      const immediateWatch = (source, callback) => {
        watch(source, callback, {deep: true,immediate: true })
      }



  /* -------------------------- 属性定义 -------------------------- */

      const setTimeOutList = [];
      const pageLoading = reactive({
        loading: false,
        tip: undefined
      });
      const authInfo = localGet('app-user-store');

    const vid_du2gmqur8d_props = reactive({
          dataSource: [],
      current: {},
      currentIndex: -1,
  })

    const vid_rzotejsivt_props = reactive({
          rt_text: undefined,
  })

    const vid_487ozoowk2_props = reactive({
          rt_text: undefined,
  })

    const vid_gayenpndmn_props = reactive({
          rt_text: undefined,
  })

    const vid_t3ic87abfk_props = reactive({
          rt_text: undefined,
  })

    const vid_54rcrhgdmj_props = reactive({
          rt_text: undefined,
  })

    const vid_jgey352cdb_props = reactive({
          rt_text: undefined,
  })

    const vid_xfcxztygwb_props = reactive({
          rt_text: undefined,
  })

    const vid_2wh4y6vdie_props = reactive({
          rt_text: undefined,
  })

    const vid_mxykavwcsd_props = reactive({
          rt_text: undefined,
  })

    const vid_6s09j1h04g_props = reactive({
          systemSort: [],
      sorter: {},
      editRowSaveLoading: {},
      currentRow: {"id":"","name":"","changeFieldName":"","beforeChange":"","afterChange":"","reasonsChange":""},
      selectedRowList: {"changeFieldName":[],"reasonsChange":[],"name":[],"afterChange":[],"id":[],"beforeChange":[]},
      totalNumber: "",
      rt_tableConfig: {"layout":{"showHeader":true,"sticky":false,"operationColumnFixed":"default"},"pagination":{"current":1,"pageSizeOptions":"10,20,30,40","enable":true,"showTotal":false,"hideOnSinglePage":false,"pageSize":10,"simple":false,"sync":true,"showQuickJumper":false,"showSizeChanger":false},"scroll":{"x":"max-content","y":"max-content","scrollToFirstRowOnChange":true},"style":{"contentStyle":{"borderColor":"#D9D9D9","enableContentStyle":true,"fontFamily":"arial, helvetica, \"microsoft yahei\"","lintHeight":40,"borderWidth":1,"evenLineBackColor":"#F8FAFC","textWeight":"400","fontSize":14,"oddLineBackColor":"#FFFFFF","textColor":"#262626"},"paginationStyle":{"layout":"bottomRight","size":"default"},"headerStyle":{"borderColor":"#D9D9D9","backgroundColor":"#3875FF","fontFamily":"arial, helvetica, \"microsoft yahei\"","lintHeight":40,"borderWidth":1,"textWeight":"600","fontSize":14,"enableTextStyle":true,"textColor":"#FFFFFF"}},"basic":{"rowSelection":false,"rowEdit":{"cancelText":"取消","editText":"编辑","saveText":"保存"},"title":"","showSequenceNumber":false,"rowKey":"id"}},
      columnList: [
          {
            id: 'xo8s9qfnus',
            dataIndex: 'changeFieldName',
            headerComment: false,
            title: '字段名称',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: 'hsprg3vt72',
            dataIndex: 'beforeChange',
            headerComment: false,
            title: '变更前内容',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            width: '350px',
            resizable: true,
          },
          {
            id: 'ecf06nm1bt',
            dataIndex: 'afterChange',
            headerComment: false,
            title: '变更后内容',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            width: '350px',
            resizable: true,
          },

        ],
      rawColumnList: [],
      // 进行行合并所需的排序规则，必须将其加到排序字段的前面，以实现合并单元格
      rowMergeSort: [],
      // 完整的排序规则：需要将行合并的排序规则和排序字段的排序规则赋给该属性；调接口时会使用其作为排序条件
      systemSort: [],
      // 条件格式需要的边界值映射：key为边界值id，value为边界值数据
      boundaryValueMap: {},
      // 表格单元格内容渲染需要的外部数据源：key为列，value为该列单元格的外部数据源配置
      contentDataSource: {},
  })



      // 处理校验
      const setSubFormName =(parentInfo, name)=>{
        return [parentInfo.parents, parentInfo.cycleIndex, name];
      }


    const vid_6s09j1h04g_options_raw = ref([])

      const vid_6s09j1h04g_options = computed(() => {
        return () => vid_6s09j1h04g_options_raw.value
      })

  // 图表组件 表格_al1blsa8dl 条件格式数据依赖
  const vid_6s09j1h04g_chartConditionDependencyMap = ref({
  })
  /* ========================== 属性定义 ========================== */


  /* -------------------------- 元素数据引用 -------------------------- */


  /* ========================== 元素数据引用 ========================== */


  /* -------------------------- 页面数据 -------------------------- */

    // 页面数据 根据流程实例id查询
    const dataConnector_conn_u0ye86nr53_response = ref();
    const dataConnector_conn_u0ye86nr53 = async (additionParams = {}) => {
        const exec = async () => {
          // 获取参数
          const params = {

          };

          // 注入附加的参数
          try {
            merge(params, additionParams);
          } catch (error) {
            console.log(error)
          }

          // 判断加载提示

          // 处理URL
          let url = '/solution-ppm/api/v2/built-in-system-ppm/task/faq/get/{instanceId}';
          // 替换url中的变量
          url = url.replace('{instanceId}', String(pageParameter_state.processInstanceId))
          // 排除空参数  日期组件重置后的空参数是[null] 或者[undefined]
          Object.keys(params).forEach(key=>{ if(params[key] === null){ delete params[key] }else if( Object.prototype.toString.call(params[key]) === '[object Object]' ){ Object.keys(params[key]).forEach(childKey=>{ if(params[key][childKey] === null || (Array.isArray(params[key][childKey]) && params[key][childKey].length === 1 && isNullOrUnDef(params[key][childKey]?.[0]))){ delete params[key][childKey] }}) } });
          return get(url, params, {
                headers: {}
              }).then(async (resp) => {
            dataConnector_conn_u0ye86nr53_response.value = resp;

            return resp;
          }).catch(async (e) => {


            return Promise.reject(e);
          }).finally(async () => {


          })
        }

          return await exec()

    }


  /* ========================== 页面数据 ========================== */



  /* -------------------------- 响应 -------------------------- */

  /* ========================== 响应 ========================== */


  /* -------------------------- 函数 -------------------------- */

  /* ========================== 函数 ========================== */


  /* -------------------------- 页面参数 -------------------------- */

    const pageParameter_state = reactive({
        'processInstanceId': props.processInstanceId ?? route.query.processInstanceId,
    })

  /* ========================== 页面参数 ========================== */


  /* -------------------------- 组件事件处理方法 -------------------------- */

    // ---------------------------- 组件数据同步 ----------------------------
    // 处理 简单文本_6k9ys1hkxu 的 rt_text 属性关联
  watch(() => dataConnector_conn_u0ye86nr53_response?.value?.data?.discoveredBy,
    () => {
      let dataList = dataConnector_conn_u0ye86nr53_response?.value?.data?.discoveredBy

      vid_rzotejsivt_props.rt_text = dataList;
    },
    {deep: true})
  // 处理 简单文本_1tcrroehvp 的 rt_text 属性关联
  watch(() => dataConnector_conn_u0ye86nr53_response?.value?.data?.phenomenon,
    () => {
      let dataList = dataConnector_conn_u0ye86nr53_response?.value?.data?.phenomenon

      vid_487ozoowk2_props.rt_text = dataList;
    },
    {deep: true})
  // 处理 简单文本_zp6xc6p7d8 的 rt_text 属性关联
  watch(() => dataConnector_conn_u0ye86nr53_response?.value?.data?.result,
    () => {
      let dataList = dataConnector_conn_u0ye86nr53_response?.value?.data?.result

      vid_gayenpndmn_props.rt_text = dataList;
    },
    {deep: true})
  // 处理 简单文本_7m4y40j547 的 rt_text 属性关联
  watch(() => dataConnector_conn_u0ye86nr53_response?.value?.data?.phenomenonReason,
    () => {
      let dataList = dataConnector_conn_u0ye86nr53_response?.value?.data?.phenomenonReason

      vid_t3ic87abfk_props.rt_text = dataList;
    },
    {deep: true})
  // 处理 简单文本_no3c2p66z4 的 rt_text 属性关联
  watch(() => dataConnector_conn_u0ye86nr53_response?.value?.data?.phenomenonReason,
    () => {
      let dataList = dataConnector_conn_u0ye86nr53_response?.value?.data?.phenomenonReason

      vid_54rcrhgdmj_props.rt_text = dataList;
    },
    {deep: true})
  // 处理 简单文本_4i4tzej12t 的 rt_text 属性关联
  watch(() => dataConnector_conn_u0ye86nr53_response?.value?.data?.reasonFeature,
    () => {
      let dataList = dataConnector_conn_u0ye86nr53_response?.value?.data?.reasonFeature

      vid_jgey352cdb_props.rt_text = dataList;
    },
    {deep: true})
  // 处理 简单文本_vbuew0p90z 的 rt_text 属性关联
  watch(() => dataConnector_conn_u0ye86nr53_response?.value?.data?.executionTarget,
    () => {
      let dataList = dataConnector_conn_u0ye86nr53_response?.value?.data?.executionTarget

      vid_xfcxztygwb_props.rt_text = dataList;
    },
    {deep: true})
  // 处理 简单文本_1ru69f2fek 的 rt_text 属性关联
  watch(() => dataConnector_conn_u0ye86nr53_response?.value?.data?.plan,
    () => {
      let dataList = dataConnector_conn_u0ye86nr53_response?.value?.data?.plan

      vid_2wh4y6vdie_props.rt_text = dataList;
    },
    {deep: true})
  // 处理 简单文本_o68tt8xdfu 的 rt_text 属性关联
  watch(() => dataConnector_conn_u0ye86nr53_response?.value?.data?.reachStandard,
    () => {
      let dataList = dataConnector_conn_u0ye86nr53_response?.value?.data?.reachStandard

      vid_mxykavwcsd_props.rt_text = dataList;
    },
    {deep: true})
  // 处理 表格_al1blsa8dl 的 systemList 属性关联
  watch(() => dataConnector_conn_mffeaigqii_response?.value?.data?.ppmChangeRecordDtoList,
    () => {
      let dataList = dataConnector_conn_mffeaigqii_response?.value?.data?.ppmChangeRecordDtoList

      vid_6s09j1h04g_options_raw.value = dataList;
    },
    {deep: true})
    // ============================ 组件数据同步 ============================

  /**
  * 处理元素 表格 的 change 事件
  */
  let handle_vid_6s09j1h04g_change = throttle(async (...params) => {
  // 处理分页器相关数据
  const [pagination, filters, sorter] = params;
  const { current, pageSize } = pagination;
  vid_6s09j1h04g_props.rt_tableConfig.pagination.current = current;
  vid_6s09j1h04g_props.rt_tableConfig.pagination.pageSize = pageSize;
  // 处理排序相关数据
  const { field, order } = sorter;
  const sorterList = [...vid_6s09j1h04g_props.rowMergeSort];
  let sorterValue = {};
  if (order === 'descend') {
  sorterValue = { order: field, direction: 'DESC' }
  } else if (order === 'ascend') {
  sorterValue = { order: field, direction: 'ASC' }
  }
  sorterList.push(sorterValue);
  vid_6s09j1h04g_props.systemSort = sorterList;
  vid_6s09j1h04g_props.sorter = sorterValue;
  }, 500)
  /* ========================== 组件事件处理方法 ========================== */


  /* -------------------------- 生命周期 -------------------------- */
  // 用于参数变更后重新执行自定义指令
      const queryUpdateFlag = ref(0);
      onMounted(() => { ;dataConnector_conn_u0ye86nr53()

    });

    onUnmounted(() => {
      // 销毁定时器
      setTimeOutList.forEach(({ repeat, timer }) => {
        repeat ?  clearInterval(timer): clearTimeout(timer);
      });
    });

  /* ========================== 生命周期 ========================== */


  /* -------------------------- 数据关联处理 -------------------------- */





  /* -------------------------- 表单数据同步 -------------------------- */
  /* ========================== 表单数据同步 ========================== */

  /* ========================== 数据关联处理 ========================== */


  /* -------------------------- 不同组件自定义的处理逻辑 -------------------------- */
  onMounted(() => {
    const rawColumnList = []
    traversalTreeStructure(vid_6s09j1h04g_props.columnList, (node) => {
      if (node.type === 'column') {
        rawColumnList.push(node)
      }
    });
    
    // 获取缓存的表格列宽度，处理列宽信息
    UserTableRecords.getTableRecords(localGet('al__UID')).then((res) => {
      const columnWidthMap = res['vid_6s09j1h04g'] ?? {};
      rawColumnList.map((column) => {
        if(columnWidthMap[column.dataIndex]) {
          column.width = columnWidthMap[column.dataIndex]
        }
      })
    });
    
    vid_6s09j1h04g_props.rawColumnList = rawColumnList;
  })
  // 生成表格列：相同分组的数据需要合并单元格
  const vid_6s09j1h04g_columns = computed(() => {
    // 需要合并单元格的列
    const groupKeys = [];

    // 将表头配置按照groupTitle字段进行分组，以实现多级表头
    const columnList = [...vid_6s09j1h04g_props.columnList];
    function formatColumns(columns) {
      columns.forEach(item => {
        const { dataIndex, contentAlign, children, customCellStyle } = item;
        // 如果当前列是分组列，则递归处理它的子列，当前列本身不作处理
        if (!dataIndex && children && children.length) {
          formatColumns(children);
          return;
        }

        const groupIndex = groupKeys.findIndex(item => item === dataIndex);
        // 如果当前字段属于分组字段，则给它添加合并单元格的配置，否则直接返回
        if (groupIndex === -1) {
          item.customCell = (record, index) => {
            return { style: { 'text-align': contentAlign, ...(customCellStyle || {}) } };
          };
        } else {
          item.customCell = (record, index) => {
            const rowGroupKeys = groupKeys.slice(0, groupIndex + 1);
            const rowSpanList = generateRowSpanList(vid_6s09j1h04g_options.value(), rowGroupKeys,vid_6s09j1h04g_props.editRecordMap);
            return { rowSpan: rowSpanList[index], style: { 'text-align': contentAlign, ...(customCellStyle || {}) } };
          };
        }
      })
    }

    // 格式化column：增加合并单元格的配置，以及自定义样式
    formatColumns(columnList);

    return columnList;
  });


    // 表格分页器信息：将总条数信息加到基础分页信息中
    const vid_6s09j1h04g_pagination = computed(() => {
      const { totalNumber, rt_tableConfig } = vid_6s09j1h04g_props;
      const {
        enable = true,
        current= 1,
        pageSize= 10,
        showSizeChanger= false,
        pageSizeOptions= '10,20,30,40',
        showTotal= false,
        showQuickJumper= false,
        simple= false,
        hideOnSinglePage= false,
      } = rt_tableConfig.pagination ?? {};
      const { size = 'default', layout='bottomRight' } = rt_tableConfig?.style?.paginationStyle || {}
      let info = {};
      if(enable) {
        info = {
          total: totalNumber || 0,
          pageSize,
          size,
          simple,
          current,
          showSizeChanger,
          pageSizeOptions: pageSizeOptions.split(','),
          showQuickJumper,
          hideOnSinglePage,
          position: [layout],
        }
        if(showTotal) {
          info.showTotal = (total, range) => `共${total}个项目，第${current}/${Math.ceil(total / pageSize)}页`
        }
        return info;
      }
      return false;
    })


        // 补充一个watch，用于监听删除最后一页最后一条数据的情况，然后重新加载数据
        watch(() => dataConnector_conn_mffeaigqii_response?.value?.data?.ppmChangeRecordDtoList, (newValue) => {
          const current = vid_6s09j1h04g_props.rt_tableConfig.pagination.current;
          if (!newValue?.length && current > 1) {
            vid_6s09j1h04g_props.rt_tableConfig.pagination.current = current - 1;
            dataConnector_conn_mffeaigqii();
          }
        });
  /**
   * 生成分组字段合并单元格的配置：返回值为一个数字数组，数组里面每一项即为该字段当前行的rowSpan配置
   * @param {Array} 表格中的数据
   * @param {Array} 当前分组字段的列表，注：为了保证优先级低的字段合并后是优先级高的字段合并后的子集，需要把比该字段优先级高的分组字段按顺序放在该字段前面；例如：所有分组字段列表为['grade', 'age', 'score']，要生成age字段的合并单元格配置，则该参数需要传['grade', 'age']
   * @returns {Array} 该字段合并单元格的rowSpan配置，例：[1, 1, 2, 0, 1]
   */
  function generateRowSpanList(dataSource, groupKeys,editRecordMap) {
    if (!dataSource || !dataSource.length) {
      return [];
    }

    const rowSpanList = [];

    // 判断单元格是否需要合并的临时值：使用表格数据最后一行进行初始化（表格数据的遍历是倒序进行的）
    let tempValue = getGroupValue(dataSource[dataSource.length - 1], groupKeys);
    // 记录需要合并单元格的数量
    let tempValueCount = 0;

    // 倒序遍历数组，以保证使用最前面一条数据合并单元格
    for (let index = dataSource.length - 1; index >= 0; index--) {
      rowSpanList[index] = 0;
      const groupValue = getGroupValue(dataSource[index], groupKeys);
      // 如果当前行的分组数据跟上一行一致，则将标记数量加一；否则将标记数量的当前值赋给上一条数据，并重置临时值和标记数量
      if(editRecordMap && editRecordMap[index]){ //如果当前行是编辑行
        rowSpanList[index + 1] = tempValueCount;
        tempValue = "";
        tempValueCount=1;
      }
      else if (groupValue === tempValue) {
        tempValueCount++;
      } else {
        rowSpanList[index + 1] = tempValueCount;
        tempValue = groupValue;
        tempValueCount = 1;
      }

      // 遍历到最后一行，将当前的标记数量赋给当前行
      if (index === 0) {
        rowSpanList[index] = tempValueCount;
      }
    }

    return rowSpanList;
  }

  /**
   * 根据分组字段列表生成当前数据行的分组值
   * @param {Object} 当前数据行
   * @param {Array} 分组字段列表
   * @returns {String} 拼装的当前数据行的分组值，例：record为{ age: 7, grade: '一年级', name: '小赵' }，groupKeys为['grade', 'age']，则拼装后的返回值为'一年级__$__7'
   */
  function getGroupValue(record, groupKeys) {
    const groupValueList = [];
    groupKeys.forEach(groupKey => {
      let val = record[groupKey]
      if (isArray(val)) {
        val = record[groupKey + '_labels']
      } else if (isObject(val)) {
        console.warn('警告表格列数据为object，可能导致行合并异常，列key为：'+ groupKey,val)
      }
      groupValueList.push(`${val}`);
    });
    return groupValueList.join('__$__');
  }

  /**
   * 将列表数据转换成树状数据
   * @param {Array} 原始的列表数据
   * @param {String|Number} 列表数据的唯一key
   * @param {String|Number} 列表数据转成树时的父级id
  */
  function convertListToTree(list, key, parentKey) {
    const clonedList = cloneDeep(list || []);

    // 遍历列表数据，生成树节点的map：key为列表数据的唯一key，value为列表当前行的数据
    const treeNodeMap = {};
    clonedList.forEach(item => {
      treeNodeMap[item[key]] = item;
    });

    const treeDataList = [];
    clonedList.forEach(item => {
      // 如果当前行数据的父级id不在树节点的map中，则当前数据为根节点数据，将其加入最终树形数据的列表；否则将其放入其父节点数据的children中
      if (!treeNodeMap[item[parentKey]]) {
        treeDataList.push(item);
      } else {
        if (!treeNodeMap[item[parentKey]].children) {
          treeNodeMap[item[parentKey]].children = [];
        }
        treeNodeMap[item[parentKey]].children.push(item);
      }
    });

    return treeDataList;
  }

  /**
   * 表格列宽伸缩处理，使用indexedDB缓存伸缩后的列宽度
   */
  const handleResizeColumn = (w, col, vid) => {
    col.width = w;
    
    UserTableRecords.saveTableRecords(col, localGet('al__UID'), vid)
    
  }
  /* ========================== 不同组件自定义的处理逻辑 ========================== */


  // ================================定制化逻辑========================================
  // 附件下载
  const ppmEnclosureInfoList = ref([])
  const taskId = ref(undefined)
  watch(() => dataConnector_conn_a4lxn61ico_response?.value,
    () => {
      ppmEnclosureInfoList.value = dataConnector_conn_a4lxn61ico_response?.value?.data.ppmEnclosureInfoList
      console.log(dataConnector_conn_a4lxn61ico_response?.value);
      console.log(ppmEnclosureInfoList.value,'ppmEnclosureInfoList');
    },
    { deep: true })
  console.log('14.20')
  pageLoading.tip = '正在下载请稍后...'
  // 图片预览

  const stateF = reactive({
    previewVisible: false,
    previewImage: '',
    previewFileUrl: '',
    isImagePreview: false
  })

  function previewAttachment(item) {
    // 检查附件类型
    if (item.type.startsWith('image')) {
      stateF.isImagePreview = true
      stateF.previewImage = item.url // 设置预览图片的URL
      stateF.previewVisible = true // 显示模态框
    } else {
      // stateF.isImagePreview = false;
      // // 如果是其他类型的文件，直接在模态框中显示
      // stateF.previewFileUrl = item.url; // 设置预览文件的URL
      message.info('目前仅支持图片预览')
    }
  }

  function handlerDownload({ url, name }) {
    pageLoading.loading = true

    function downBlob(blob) {
      const downloadElement = document.createElement('a')
      const href = window.URL.createObjectURL(blob) // 创建下载的链接
      downloadElement.href = href
      downloadElement.download = name // 下载后文件名
      document.body.appendChild(downloadElement)
      downloadElement.click() // 点击下载
      document.body.removeChild(downloadElement) // 下载完成移除元素
      window.URL.revokeObjectURL(href)
    }

    const data = new FormData()
    data.append('path', url)
    post('/solution-ppm/api/v2/built-in-system-ppm/delivery_task/downloadFile', data, {
      responseType: 'blob',
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
      .then(blob => {
        downBlob(blob)
      })
      .finally(() => {
        pageLoading.loading = false
      })
  }

  function downloadZip(response, name) {
    const blob = new Blob([response], { type: 'application/zip;charset=utf-8' });
    const downloadElement = document.createElement('a');
    const href = window.URL.createObjectURL(blob);
    downloadElement.href = href;
    downloadElement.download = name; // 下载后文件名
    document.body.appendChild(downloadElement);
    downloadElement.click();
    document.body.removeChild(downloadElement);
    window.URL.revokeObjectURL(href);
    return href;
  }

   watch(() => dataConnector_conn_a4lxn61ico_response?.value?.data?.taskStatus,
   () => {
     let dataList = dataConnector_conn_a4lxn61ico_response?.value?.data?.taskStatus

  //
  let text = document.querySelector('.vid_9zk7il8n5j')
  if(dataList==='完成'){
      text.style.color = '#30BF78'
  }else if(dataList==='延期'){
      text.style.color = '#E02020'
  }else if(dataList==='进行中'){
      text.style.color = '#3875FF'
  }else if(dataList==='延期完成'){
      text.style.color = '#FF9846'
  }else if(dataList==='未启动'){
      text.style.color = '#8C8C8C'
  }
  //
   },
   {deep: true})
</script>
<style lang="less" scoped>
  .page_root {
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color:#F5F5F5;
  }
  .page_root :deep(.@{ant-prefix}-spin-nested-loading),
  .page_root :deep(.@{ant-prefix}-spin-container)
   {
      height: 100%;
  }
  .page_root :deep(.@{ant-prefix}-spin-container .@{ant-prefix}-table-wrapper)
   {
      display: flex;
      flex-flow: column nowrap;
      justify-content: flex-start;
  }
  .page_root :deep(.@{ant-prefix}-table)
   {
    flex: auto;
    overflow: auto;
  }
  .table-moreBtn_down {
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 100px;
  }

  .table-moreBtn_menu :deep(.table-moreBtn_menu-item):hover {
    background: #ebf1ff;
  }

  /*  表格树结构样式处理，展开按钮层级增加*/
  :deep(.@{ant-prefix}-table-row-expand-icon) {
    z-index: 1;
  }
  /*  表格树结构 由于每个表格项采用自定义组件，使用绝对定位布局，开启树结构导致显示异常，暂时使用层级定位位置 */
  :deep(.@{ant-prefix}-table-row-level-1 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 15px !important;
    width: calc(100% - 15px);
  }
  :deep(.@{ant-prefix}-table-row-level-2 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 30px !important;
    width: calc(100% - 30px);
  }
  :deep(.@{ant-prefix}-table-row-level-3 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 45px !important;
    width: calc(100% - 45px);
  }
  :deep(.@{ant-prefix}-table-row-level-4 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 60px !important;
    width: calc(100% - 60px);
  }

  /* 穿梭框改变默认样式，为根据组件样式控制左右栏宽度。 */
  :deep(.@{ant-prefix}-transfer-list)
   {
      height: 100%;
      width: 50%;
  }
  .vid_a66h2jgxek{
      width:100%;
      height:750px;
      min-height:100%;
      overflow-x:hidden;
      overflow-y:auto;
      display:block;
      background-color:#FFFFFF;
      box-shadow:0px 0px 0px 0px
  }
  .vid_xlkfzz25ds{
      display:block;
      margin-bottom:24px;
      box-shadow:0px 0px 0px 0px
  }
  .vid_qda7xszz78{
      margin-bottom:16px;
      background-color:#FFFFFF
  }
  .vid_sfilmvv65x{
      height:16px;
      display:flex;
      align-items:center;
      flex-wrap:undefined;
      padding-left:8px;
      font-weight:600;
      font-size:16px;
      border-left-style:solid;
      border-left-width:4px;
      border-left-color:#3875FF
  }
  .vid_l7xgnljczt{
      display:flex;
      flex-direction:row;
      align-items:center;
      flex-wrap:undefined;
      margin-bottom:8px;
      box-shadow:0px 0px 0px 0px
  }
  .vid_hte17hl8ou{
      min-width:70px;
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_8ce19j1ydg{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_iba16wjwvd{
      display:flex;
      flex-direction:row;
      align-items:center;
      flex-wrap:undefined;
      box-shadow:0px 0px 0px 0px
  }
  .vid_iwcyr4i375{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_zqjezxqu9b{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_5sd6n2l02g{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_cop9kfadhp{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_8kezk0tugs{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_q5no09eq2f{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_pg8giogatn{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_pzyvv5q9yg{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_yod8xlcrbi{
      display:block;
      margin-bottom:24px
  }
  .vid_b1hawj8uwy{
      margin-bottom:16px;
      background-color:#FFFFFF
  }
  .vid_h6u3d6kz74{
      height:16px;
      display:flex;
      align-items:center;
      flex-wrap:undefined;
      padding-left:8px;
      font-weight:600;
      font-size:16px;
      border-left-style:solid;
      border-left-width:4px;
      border-left-color:#3875FF
  }
  .vid_du2gmqur8d{
      box-shadow:0px 0px 0px 0px
  }
  .vid_fol8r4o0tj{
      display:flex;
      flex-direction:row;
      align-items:center;
      flex-wrap:undefined;
      box-shadow:0px 0px 0px 0px
  }
  .vid_njmnjiq7i7{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_a7lvpg612b{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_m4d07xxbra{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_hjbw8phj2h{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_4vvtsmhowe{
      display:block;
      margin-bottom:24px;
      box-shadow:0px 0px 0px 0px
  }
  .vid_di36pt2pzs{
      margin-bottom:16px;
      background-color:#FFFFFF
  }
  .vid_yjya76ehrb{
      height:16px;
      display:flex;
      align-items:center;
      flex-wrap:undefined;
      padding-left:8px;
      font-weight:600;
      font-size:16px;
      border-left-style:solid;
      border-left-width:4px;
      border-left-color:#3875FF
  }
  .vid_rypwgc6ss5{
      background-color:#FFFFFF;
      border-style:none;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_qbgkhd7h2v{
      height:40px;
      display:flex;
      align-items:center;
      justify-content:flex-end;
      flex-wrap:undefined;
      padding-right:8px;
      background-color:#FAFAFA;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_s745n3oub4{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_rtbnfwrnks{
      height:40px;
      display:flex;
      align-items:center;
      justify-content:center;
      flex-wrap:undefined;
      padding-right:8px;
      background-color:#F2F2F2;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_4bqlt6j1py{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:500;
      color:rgba(38, 38, 38, 1);
      font-size:16px
  }
  .vid_xzvvmby2lh{
      height:40px;
      overflow-y:auto;
      display:flex;
      align-items:center;
      justify-content:flex-start;
      flex-wrap:wrap;
      padding-left:8px;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_rzotejsivt{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_skds8sq3vh{
      height:40px;
      display:flex;
      align-items:center;
      justify-content:flex-end;
      flex-wrap:undefined;
      padding-right:8px;
      background-color:#FAFAFA;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_u03k2svv4z{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_adexb2xu2x{
      height:40px;
      overflow-y:auto;
      display:flex;
      align-items:center;
      justify-content:flex-start;
      flex-wrap:wrap;
      padding-left:8px;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_487ozoowk2{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_p67rt8myqe{
      height:40px;
      display:flex;
      align-items:center;
      justify-content:flex-end;
      flex-wrap:undefined;
      padding-right:8px;
      background-color:#FAFAFA;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_oyuk3wj70z{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_z473t7kfws{
      height:40px;
      overflow-y:auto;
      display:flex;
      align-items:center;
      justify-content:flex-start;
      flex-wrap:wrap;
      padding-left:8px;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_gayenpndmn{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_1fmhcrbafu{
      height:40px;
      display:flex;
      align-items:center;
      justify-content:center;
      flex-wrap:undefined;
      padding-right:8px;
      background-color:#F2F2F2;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_8mgno2r2dp{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:500;
      color:rgba(38, 38, 38, 1);
      font-size:16px
  }
  .vid_lyuiecoqvt{
      height:40px;
      display:flex;
      align-items:center;
      justify-content:flex-end;
      flex-wrap:undefined;
      padding-right:8px;
      background-color:#FAFAFA;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_6zq6ukf1x4{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_h0n5ab0biu{
      height:40px;
      overflow-y:auto;
      display:flex;
      align-items:center;
      justify-content:flex-start;
      flex-wrap:wrap;
      padding-left:8px;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_t3ic87abfk{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_wmlcmyjt5w{
      height:40px;
      display:flex;
      align-items:center;
      justify-content:flex-end;
      flex-wrap:undefined;
      padding-right:8px;
      background-color:#FAFAFA;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_5x63fm5w3t{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_bbybol1zsa{
      height:40px;
      overflow-y:auto;
      display:flex;
      align-items:center;
      justify-content:flex-start;
      flex-wrap:wrap;
      padding-left:8px;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_54rcrhgdmj{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_umn6hud4h7{
      height:40px;
      display:flex;
      align-items:center;
      justify-content:flex-end;
      flex-wrap:undefined;
      padding-right:8px;
      background-color:#FAFAFA;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_5ti11oogh7{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_xpewrscbc0{
      height:40px;
      overflow-y:auto;
      display:flex;
      align-items:center;
      justify-content:flex-start;
      flex-wrap:wrap;
      padding-left:8px;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_jgey352cdb{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_qiyecho2vx{
      height:40px;
      display:flex;
      align-items:center;
      justify-content:center;
      flex-wrap:undefined;
      padding-right:8px;
      background-color:#F2F2F2;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_2bqh7fncrg{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:500;
      color:rgba(38, 38, 38, 1);
      font-size:16px
  }
  .vid_9syj1hwxbp{
      height:40px;
      display:flex;
      align-items:center;
      justify-content:flex-end;
      flex-wrap:undefined;
      padding-right:8px;
      background-color:#FAFAFA;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_iksz9tk2cz{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_3jg84rnica{
      height:40px;
      overflow-y:auto;
      display:flex;
      align-items:center;
      justify-content:flex-start;
      flex-wrap:wrap;
      padding-left:8px;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_xfcxztygwb{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_inmc4b6ld2{
      height:40px;
      display:flex;
      align-items:center;
      justify-content:flex-end;
      flex-wrap:undefined;
      padding-right:8px;
      background-color:#FAFAFA;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_51ybjihkae{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_xyo1cajxp3{
      height:40px;
      overflow-y:auto;
      display:flex;
      align-items:center;
      justify-content:flex-start;
      flex-wrap:wrap;
      padding-left:8px;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_2wh4y6vdie{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_6rb5u4c9ke{
      height:40px;
      display:flex;
      align-items:center;
      justify-content:flex-end;
      flex-wrap:undefined;
      padding-right:8px;
      background-color:#FAFAFA;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_84a44sp7q9{
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:400;
      color:rgba(89, 89, 89, 1)
  }
  .vid_deligkiglq{
      height:40px;
      overflow-y:auto;
      display:flex;
      align-items:center;
      justify-content:flex-start;
      flex-wrap:wrap;
      padding-left:8px;
      border-style:solid;
      border-width:1px;
      border-color:#D9D9D9
  }
  .vid_mxykavwcsd{
      font-weight:500;
      color:rgba(38, 38, 38, 1)
  }
  .vid_n6axfrrt1e{
      overflow-y:auto;
      display:block;
      background-color:#FFFFFF
  }
  .vid_v19ka9eo91{
      width:100%;
      margin-bottom:12px;
      background-color:#FFFFFF
  }
  .vid_gcr9bk01j7{
      height:16px;
      display:flex;
      align-items:center;
      flex-wrap:undefined;
      padding-left:8px;
      font-weight:600;
      font-size:16px;
      line-height:16px;
      border-left-style:solid;
      border-left-width:4px;
      border-left-color:#3875FF
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table-thead) > tr {
      height: 40px;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table-thead) > tr > th {
    background: #3875FF;
    font-size: 14px;
    font-family: arial, helvetica, "microsoft yahei";
    font-weight: 600;
    color: #FFFFFF;
    border-bottom:1px solid #D9D9D9;
    padding: 8px 16px;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr:not(:last-child) > th {
    border-bottom:1px solid #D9D9D9;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr > th {
    border-right:1px solid #D9D9D9;
  }
  /* 将表格自带的左边框取消，方便设置表头边框颜色和内容边框颜色 */
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container {
    border-left: none;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr > th[colstart='0']:first-child {
    border-left:1px solid #D9D9D9;
  }
  /* 开启粘性表头后，表格结构会发生变化 需另外处理 */
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-header table {
    border-top:1px solid #D9D9D9;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container > .@{ant-prefix}-table-content > table {
    border-top:1px solid #D9D9D9;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table-thead) > tr > th:not(:last-child):not(.@{ant-prefix}-table-selection-column):not(.@{ant-prefix}-table-row-expand-icon-cell):not([colspan])::before {
      background: #D9D9D9;
      width: 1px;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table-cell-scrollbar) {
      box-shadow: none;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table-tbody) tr {
    height: 40px;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table-tbody) tr > td {
    font-size: 14px;
    font-family: arial, helvetica, "microsoft yahei";
    font-weight: 400;
    color: #262626;
    border-bottom:1px solid #D9D9D9;
    padding: 0 16px;
    word-break: break-all;
    .cell-wrapper {
      padding: 0 16px;
    }
  }

  .vid_6s09j1h04g :deep(.@{ant-prefix}-table-tbody) tr > td .cell-wrapper {
    padding: 0 16px;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table-empty .@{ant-prefix}-table-tbody tr > td) {
    padding: 0;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table-tbody) tr > td .@{ant-prefix}-btn {
    padding: 0 30px 0 0;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table-tbody) tr > td .@{ant-prefix}-btn:last-child {
    padding: 0;
  }
  .vid_6s09j1h04g :deep(.table-striped-odd) td {
    background-color: #FFFFFF;
  }
  .vid_6s09j1h04g :deep(.table-striped-even) td {
    background-color: #F8FAFC;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-tbody tr > td {
    border-right:1px solid #D9D9D9;
  }
  .vid_6s09j1h04g :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-tbody tr > td:first-child {
    border-left:1px solid #D9D9D9;
  }
  .vid_6s09j1h04g{
      width:100%;
      background-color:#FFFFFF
  }
  .vid_6s09j1h04g:active{
      width:100%
  }
  .vid_6s09j1h04g:focus{
      width:100%
  }
  .vid_6s09j1h04g:hover{
      width:100%
  }

  :deep(.@{ant-prefix}-table-empty .@{ant-prefix}-table-tbody tr > td) {
   padding: 0;
  }
    /deep/.ant3-checkbox-group-item + .ant3-checkbox-group-item span{
      color:#595959 !important;
    }
    /deep/.ant3-checkbox-wrapper.ant3-checkbox-wrapper-disabled span{
      color:#595959 !important;
    }
  .file-item {
    display: flex;
    width: 100%;
  }
  .file-name {
    width: 75%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
  .file-time,
  .file-preview,
  .file-download {
    width: 10%;
    text-align: center;
    cursor: pointer;
  }
  .file-preview,
  .file-download {
    color: #3875ff;
  }
  .vid_qa53gc55by{
    height:197px;
    box-shadow:0px 0px 0px 0px;
    display: flex;
    flex-direction: column;
  }
  .file-main{
    width: 35%;
    overflow-y: scroll;
  }
</style>